package fr.umlv.m2.jee.portailEtudiant.web.action.tp;

import com.opensymphony.xwork2.ActionSupport;
import fr.umlv.m2.jee.portailEtudiant.service.DisplayTd;
import fr.umlv.m2.jee.portailEtudiant.service.DisplayTp;
import fr.umlv.m2.jee.portailEtudiant.service.IDisplayTdService;
import fr.umlv.m2.jee.portailEtudiant.service.IDisplayTpService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 15/04/11
 * Time: 14:05
 * To change this template use File | Settings | File Templates.
 */
public class AllTps extends ActionSupport {

    @Autowired
    private IDisplayTpService tpsService;

    private List< DisplayTp > tpList;

    @Override
	public String execute() throws Exception {
        System.out.println("ds execute 1");
		tpList = tpsService.getAllDisplayTps();
        System.out.println("ds execute 2");
		return SUCCESS;

	}

    public List< DisplayTp > getTpList() {
		return tpList;
	}


    public void setTpsService(IDisplayTpService tpsService) {
        this.tpsService = tpsService;
    }
}

